package com.huabo.audit.oracle.entity;

import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Transient;

import org.springframework.format.annotation.DateTimeFormat;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

@TableName("TBL_NBSJ_TARGETTYPE")
@Data
@ApiModel("实体类")
@Accessors(chain = true)
public class TblTargetTypeEntity {

	public static final Integer TEMP_NUMBER=0;//审计模板
	public static final Integer ZY_NUMBER=1;//审计指引

	private static final long serialVersionUID = 1L;
	
	@TableId(value = "targetId", type= IdType.AUTO)
	@ApiModelProperty(value="")
	private BigDecimal targetId;
	
	@TableField(value = "targetName")
	@ApiModelProperty(value="")
	private String targetName;
	
	@TableField(value = "rulename")
	@ApiModelProperty(value="")
	private String targetDesc;
	
	@TableField(value = "PARENTID")
	@ApiModelProperty(value="")
	private BigDecimal parentId;
	
	@TableField(value = "CREATETIME")
	@ApiModelProperty(value="")
	@JSONField(format = "yyyy-MM-dd HH:mm:dd")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:dd")
	private Date createTime;
	
	@TableField(value = "UPDATETIME")
	@ApiModelProperty(value="")
	@JSONField(format = "yyyy-MM-dd HH:mm:dd")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:dd")
	private Date updateTime;
	
	@ApiModelProperty(value="")
	@Transient
	private TblNbsjTempleteEntity nbsjTemplete;
	
	@TableField(value = "STATUS")
	@ApiModelProperty(value="")
	private Integer status;
	
	@ApiModelProperty(value="")
	@Transient
	private Integer finshCount;
	
	@ApiModelProperty(value="")
	@Transient
	private Integer sumCount;
	
	@ApiModelProperty(value="")
	@Transient
	private Integer sheetCount;
	
	@ApiModelProperty(value="")
	@Transient
	private Integer unFinshCount;
	
}
